package com.atung.merchant.tool;

import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
public class WxUrlTool {
    //微信登录地址
    public static String GetWxLoginUrl = "https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECTET&js_code=JSCODE&grant_type=authorization_code";
    //获取accessToken
    public static String GetAccessToken = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=SECRET";
    //获取用户信息
    public static String GetWxUserMessage = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESSTOKEN&openid=OPENID&lang=zh_CN";
    //获取UnionId
    public static String GetUnionId = "https://api.weixin.qq.com/wxa/getpaidunionid?access_token=ACCESSTOKEN&openid=OPENID";

    public static String GetWxUserPhone = "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=ACCESS_TOKEN&";
}
